<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>生成pdf下载</title>
		<link rel="stylesheet" href="./css/index.css">
	</head>
	<body> 
		<div class="download" id="download-paper">
			下载为pdf
		</div>
		<div class="page">
			<img class="image-01" src="./image/01.png" alt="">
			<div class="padding-height"></div>
			<img class="image-01" src="./image/02.png" alt="">
		</div>
		
		<script src="https://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
		<script src="js/html2canvas.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/jspdf.debug.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/renderPDF.js" type="text/javascript" charset="utf-8"></script>
		<script src="js/paper_download.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			var imgArray = $('.page')[0].getElementsByTagName('img');
			var down = new downLoad(imgArray);
			down.init(document.getElementById('download-paper'),$('.page')[0],'pdf文件名称','a4');
		</script>
	</body>
</html>